import request from '@/utils/request'

const api_name = "/admin/system/index"   //ES6常量命名方式

export default {    
    register(Sysuser) {
        return request({
          url:`${api_name}/register`, 
          method: 'post',
          data: Sysuser
      })
    },
    //给邮箱发送验证码功能
    getCaptcha(emailfrom){
      return request({
        url:`${api_name}/getCaptcha`, 
        method: 'post',
        data: emailfrom
      })
    }
  
}